﻿@model IEnumerable<MvcApplication5.Models.Tag>

@{
    ViewBag.Title = "RemoveTag";
    Layout = null;    
}

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="/css/style2.css" media="all"/>
<script lang="JavaScript">
    function pick(symbol) {
        relatedList = window.opener.document.stockForm.stockBox.value = symbol;        
        window.close();
    }
    function pick1() {
        for (var i=0; i< 2; i++){
            var x = document.getElementById("chkBox" + i);
            if (x.checked == true)
                alert("abc");
        }
        /*var cbs = document.getElementById('chkBox1');       
        if (cbs.checked == true)
            alert("abc");        
        window.close();*/
    }
</script>
</head>
<body>
@using(Html.BeginForm()){
    <table border="1">
        <tr class="news-header">
            <th><input type="checkbox" /></th>
            <th>Tên Tag</th>                               
        </tr>
        @foreach (var item in Model)
        {            
            string temp = "chkBox" + item.TagId;
            <tr class="news-content">
                <td><input type="checkbox" id="@temp" name="chkBox" value="@item.TagId"/></td>
                <td style="width:832px; padding-left:5px;">
                    <span style="font-weight:bold;">@item.TagName</span>                    
                </td>                
            </tr>
        }
    </table>
    <input type="submit" name="submitButton" value="Xóa các Tag đã chọn" />    
    <input type="hidden" name="id" id="id" value="@ViewBag.id" />
    <input type ="hidden" name="FromPage" id="FromPage" value="@ViewBag.FromPage" />
    <input type ="hidden" name="UserType" id="UserType" value="@ViewBag.UserType" />
}
    <div>
        @Html.ActionLink("Quay lại", "Edit", new { id = ViewBag.id, FromPage = ViewBag.FromPage, UserType = ViewBag.UserType })
    </div>
</body>
</html>